<div class="panel panel-primary">
    <div class="panel-heading">
        <div class="panel-title">
            <span>用户登录</span>
        </div>
    </div>
</div>
<div class="col-xs-12 form-top">
    <div class="alert alert-danger" ng-show="hasError">用户名或密码错误</div>
    <form class="form-horizontal" name="form" ng-submit="submit()" novalidate>
        <div class="col-xs-12">
            <div class="form-group">
                <input type="text" placeholder="用户名" class="form-control" ng-model="owner.userName" required/>
            </div>
            <div class="form-group">
                <input type="password" placeholder="密码" class="form-control" ng-model="owner.password" required/>
            </div>
            <div class="form-group">
                <button class="btn btn-warning btn-block" ng-disabled="form.$invalid">登录</button>
            </div>
        </div>
    </form>
</div>